package com.mornd.gulimall.product.controller;

import com.mornd.gulimall.common.core.result.AjaxResult;
import com.mornd.gulimall.product.entity.vo.SkuInfoVo;
import com.mornd.gulimall.product.service.ISkuInfoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * sku信息 前端控制器
 * </p>
 *
 * @author mornd
 * @since 2023-07-23
 */
@RestController
@RequestMapping("/product/skuInfo")
public class SkuInfoController {

    @Resource
    private ISkuInfoService skuInfoService;

    @GetMapping
    public AjaxResult pageList(SkuInfoVo vo) {
        return AjaxResult.success(skuInfoService.pageList(vo));
    }
}
